﻿
<%@ page language="java" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>权限管理系统</title>
<link rel="StyleSheet" href="<%=path%>/css/dtree.css" type="text/css" />
<script type="text/javascript" src="<%=path%>/js/dtree.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery-1.8.0.js"></script>
</head>
<body>
	<div class="dtree" id="treeDiv"></div>
	<script type="text/javascript">
		$(document).ready(
				function() {
					d = new dTree('d');
					d.add(0, -1, '系统菜单');
					$.getJSON("sysMenuByUser.action", function(json) {
						$.each(json.menus, function(i, item) {
							d.add(item.id, item.parent, item.name, item.url,
									item.description, "main");
						});
						$("#treeDiv").html(d.toString());
					});
				});
	</script>
</body>

</html>
